import Vue from 'vue'
import Router from 'vue-router'


const Index = r => require.ensure([], () => r(require('@/pages/Index.vue')), 'Index')
import Food from '@/pages/Food'
import Trade from '@/pages/Trade'
import Order from '@/pages/Order'
import Jiesuan from '@/pages/Jiesuan'
import Yuyie from '@/pages/Yuyie'
import Dindan from '@/pages/Dindan'
import Pingjiasj from '@/pages/Pingjiasj'

Vue.use(Router)

export default new Router({
  routes: [
   {
    	path:"/index",
			component:Index,
    	name:"index"
   },{
    	path:"/food/:id",
			component:Food,
    	name:"food"
   },{
    	path:"/trade",
			component:Trade,
    	name:"trade"
   },{
    	path:"/order",
			component:Order,
    	name:"order"
   },{
    	path:"/jiesuan",
			component:Jiesuan,
    	name:"jiesuan"
   },{
    	path:"/yuyie",
			component:Yuyie,
    	name:"yuyie"
   },{
    	path:"/dindan",
			component:Dindan,
    	name:"dindan"
   },{
    	path:"/pingjiasj",
			component:Pingjiasj,
    	name:"pingjiasj"
   },{
    	path:'/',
    	redirect:"/index"
    }
  ]
})
